package com.macro.mall.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.swagger.web.*;

import java.util.HashMap;

@Configuration
public class SwaggerSecurityConfig {

    @Bean
    public SecurityConfiguration securityConfiguration(){
        return new SecurityConfiguration("clientId",
                "clientSecret", "realm", "mall-gateway", ";",
                new HashMap<>(), true, true);
    }

    @Bean
    public UiConfiguration uiConfiguration(){
        return new UiConfiguration(true, true, 10,
                3, ModelRendering.MODEL, true, DocExpansion.LIST,
                new Object(), 100, OperationsSorter.ALPHA, true,
                true, TagsSorter.ALPHA, UiConfiguration.Constants.DEFAULT_SUBMIT_METHODS,
                "http://localhost:8201/doc.html", "http://localhost:8201/doc.html");
    }

}
